<template>
  <div class="myContainer">
    <el-row class="myBorderBottom">
      <el-col :span="24">
        维修设备信息
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        设备所属小区 :
      </el-col>
      <el-col :span="6">
        <template>
          <el-select v-model="value" placeholder="请选择小区">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </template>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        设备类型 :
      </el-col>
      <el-col :span="6">
        <template>
          <el-select v-model="value" placeholder="设备类型">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </template>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        维修设备 :
      </el-col>
      <el-col :span="6">
        <template>
          <el-select v-model="value" placeholder="维修设备" :disabled="disabled">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </template>
      </el-col>
    </el-row>
    <el-row class="myBorderBottom myPaddingTop_10px">
      <el-col :span="10">
        维修基本信息
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        维修日期 :
      </el-col>
      <el-col :span="6">
        <el-date-picker
          v-model="value"
          type="date"
          placeholder="选择日期">
        </el-date-picker>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        维修类型 :
      </el-col>
      <el-col :span="6">
        <template>
          <el-select v-model="value" placeholder="维修类型" :disabled="disabled">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </template>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        维修费用 :
      </el-col>
      <el-col :span="6">
        <el-input placeholder="维修费用"></el-input>
      </el-col>
    </el-row>
    <el-row class="myBorderBottom myPaddingTop_10px">
      <el-col :span="10">
        维修详细信息
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        维修前状态描述 :
      </el-col>
      <el-col :span="10">
        <el-input type="textarea" placeholder="维修前状态描述"></el-input>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        维修操作描述 :
      </el-col>
      <el-col :span="10">
        <el-input type="textarea" placeholder="维修操作描述"></el-input>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        <span class="require myVA_M">*</span>
        维修后状态描述 :
      </el-col>
      <el-col :span="10">
        <el-input type="textarea" placeholder="维修后状态描述"></el-input>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="3" class="myVA_M myLeftMsg">
        图片信息 :
      </el-col>
      <el-col :span="10" class="my">
        <el-upload
          action="https://jsonplaceholder.typicode.com/posts/"
          list-type="picture-card"
          :on-preview="handlePictureCardPreview"
          :on-remove="handleRemove">
          <i class="el-icon-plus"></i>
        </el-upload>
        <el-dialog :visible.sync="dialogVisible" size="tiny">
          <img width="100%" :src="dialogImageUrl" alt="">
        </el-dialog>
      </el-col>
    </el-row>
    <el-row class="myPaddingTop_10px">
      <el-col :span="10" :offset="3">
        <el-button type="primary" class="myBgGreen">新 增</el-button>
        <el-button type="primary" class="myBgGreen">放弃新增</el-button>
      </el-col>
    </el-row>
  </div>
</template>

<style scoped>
  .myContainer{
    background: #fff;
    padding: 10px;
  }
  .myBorderBottom{
    border-bottom: 1px solid #dbdbdb;
    font-weight: 500;
    font-size: 16px;
    line-height: 40px;
  }
  .myBgGreen{
    background: #00c2a9;
    border-color: #00c2a9;
    color: #fff;
    margin-top: 2px;
  }
  .myLineHeight_35px{
    line-height: 35px;
  }
  .myTextAlignRight{
    text-align: right;
  }
  .myBgGreen:hover{
    background: #33ceba;
  }
  .myPaddingTop_10px{
    padding-top: 10px;
  }  
  .myLeftMsg{
    line-height: 40px;
    text-align: right;
    padding-right: 10px;
  }
  .myPaddingBottom_10px{
    padding-bottom: 10px;
  }
  .myVA_M{
    vertical-align: middle;
  }
  .myPadding_20px{
    padding: 20px;
  }
  .myDialogSearchText{
    width: 360px;
  }
  .myLineHeight_45px{
    line-height: 45px;    
  }
  .myOV_y_400px{
    max-height: 400px;
    min-height: 200px;
    overflow-y:scroll;
  }
  .mymarginTop_10px{
    margin-top: 10px;
  }
  .myBorderText{
    border-bottom: 1px solid #dbdbdb;
    font-weight: 500;
  }

</style>

<script>

  export default {
    data(){
      return{
        value:"",
        dialogImageUrl: '',
        dialogVisible: false
       
      }
    },
    components: {
        
    },
    mounted(){
      document.title = '新增维修记录';
      
    },
    methods:{     
      handleRemove(file, fileList) {
        console.log(file, fileList);
      },
      handlePictureCardPreview(file) {
        this.dialogImageUrl = file.url;
        this.dialogVisible = true;
      }
    }
  }


</script>



